package com.futao.spring.lifecycle.conroller;

import com.futao.spring.lifecycle.model.UserModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ft
 * @date 2021/1/28
 */
@RequestMapping("/user")
@RestController
public class UserController {

    @GetMapping
    public UserModel get() {
        return UserModel.builder().build();
    }
}
